package com.spic.business.datauploader.controller;

import com.spic.business.datauploader.domain.DataUploadStatus;
import com.spic.business.datauploader.service.IDataUploadStatusService;
import com.spic.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;
import java.util.List;

/**
 * @author : 赵祥
 * create at:  2022/9/21  10:54
 * @Description :
 **/
@RestController
@RequestMapping("/dataUploader")
public class DataUploaderController {
    @Autowired
    private IDataUploadStatusService dataUploadStatusService;

    @GetMapping("/list")
    public AjaxResult list() throws ParseException {
        List<DataUploadStatus> list = dataUploadStatusService.selectUploadStatusList();
        return AjaxResult.success(list);
    }
}
